import sys
import os
import json
sys.path.append('src')
from data_augmentation.file_analyze import FileAnalyze
from data_augmentation.global_analyze import GlobalAnalyze
from data_augmentation.project_analyze import ProjectAnalyze

# with open('/disk0/wyf/Project/zz_static_project/dataset/test_code/acct.c', 'rb') as file:
#     file_content = file.read()
# test_case = FileAnalyze(file_content)
# print(test_case)

# global_analyze = GlobalAnalyze('/disk0/wyf/Project/zz_static_project/dataset/ReposVul_code/linux_repo')
# global_analyze.global_analyze()

project_analyze = ProjectAnalyze('/disk0/wyf/Project/zz_static_project/dataset/ReposVul_code/linux_repo')
project_analyze.global_analyze()
project_analyze.save_test_result()
